import request from "./index.js" 

  // 老师获取毕业论文(终稿)列表
export function getTeacherPaperFinalByPage(data) {
  return request({
    method:'post',
    url: '/documents/teacher/paper-final/page',
    data
  })
}
// 老师获取毕业论文(终稿)总数
export function getTeacherPaperFinalTotal() {
  return request({
    method:'get',
    url: '/documents/teacher/paper-final/total', 
  })
}


// 老师评审指定 id 的毕业论文(终稿)
export function reviewPaperFinalById(data) {
  return request({
    method:'post',
    url: '/documents/teacher/paper-final/review',
    data
  })
}

 // 老师撤销评审指定 id 的毕业论文(终稿)
 export function teacherCancelCheckPaperFinalById(id) {
  return request({
    method:'get',
    url: `/documents/teacher/paper-final/cancel/${id}` 
  })
} 
// 学生获取个人毕业论文(初稿)
export function getStudentPaperFinal() {
  return request({
    method:'get',
    url: '/documents/student/paper-final' 
  })
}

// 学生提交个人毕业论文(初稿)
export function studentAddPaperFinal(data) {
  return request({
    method:'post',
    url: '/documents/student/paper-final/add',
    data
  })
}

// 学生修改个人毕业论文(初稿)
export function studentUpdatePaperFinal(data) {
  return request({
    method:'post',
    url: '/documents/student/paper-final/update',
    data
  })
} 
